<?php
class SubstituteModel {
	var $id_player_in;
	var $id_player_out;
	var $first_name_in;
	var $last_name_in;
	var $first_name_out;
	var $last_name_out;
	var $_time;
	
	function SubstituteModel($data_array) {
		foreach ($data_array as $k => $v) {
			if($k == "ID_PLAYER_IN") $this->setId_player_in($v);
			if($k == "IN_FIRST_NAME") $this->setFirst_name_in($v);
			if($k == "IN_LAST_NAME") $this->setLast_name_in($v);
			if($k == "OUT_FIRST_NAME") $this->setFirst_name_out($v);
			if($k == "OUT_LAST_NAME") $this->setLast_name_out($v);
			if($k == "ID_PLAYER_OUT") $this->setId_player_out($v);
			if($k == "TIME") $this->setTime($v);
		}
	}

	function setId_player_in($id) {
		$this->id_player_in = $id;
	}
	function getId_player_in() {
		return $this->id_player_in;
	}
	
	function setFirst_name_in($v) {
		$this->first_name_in=$v;
	}
	function setLast_name_in($v) {
		$this->last_name_in=$v;
	}
	
	function setFirst_name_out($v) {
		$this->first_name_out=$v;
	}
	function setLast_name_out($v) {
		$this->last_name_out=$v;
	}
	
	function getInComplete_name() {
		return $this->first_name_in." ".$this->last_name_in;
	}
	
	function getOutComplete_name() {
		return $this->first_name_out." ".$this->last_name_out;
	}
	
	
	function setId_player_out($id) {
		$this->id_player_out = $id;
	}
	function getId_player_out() {
		return $this->id_player_out;
	}
	
	function setTime($v) {
		$this->_time = $v;
	}
	function getTime() {
		return $this->_time;
	}
	
	
}
?>